package com.dayu.design.行为型.责任链模式;

/**
 * @author dayu
 * @create 2025-03-27 11:15
 */
public class ConcerteHandler02 extends Handler{
    @Override
    public void handleRequest(String request) {
        if (request.equals("02")){
            System.out.println("当前Handler02处理了该请求");
        }else if (nextHandler!=null){
            nextHandler.handleRequest(request);
        }else{
            System.out.println("无可处理的handler！");
        }
    }
}
